<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<f:view contentType="text/html" locale="#{languageBean.locale}">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>TTN Thai Transportation Network</title>
	<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/screen.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/print.css" type="text/css" media="print" />
	<link rel="stylesheet" href="${request.contextPath}/styles/booking.css" type="text/css" />
	<!--[if lt IE 8]>
		<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/ie.css" type="text/css" media="screen, projection" />
	<![endif]-->
	
	<ui:insert name="headIncludes"/>
	<style>
	<!--
		div.ui-datatable > table {
			margin-bottom: 0;
		}
	-->
	</style>
</h:head>
<h:body>
<div class="container">
	
	<div>
		<a href="#{request.contextPath}"><img src="${request.contextPath}/images/header.jpg" height="200" width="950" alt="Spring Travel"/></a>
	</div>
	<div id="navigation">
	<div><a href="search">#{messageSource['navigation.search']}</a></div>	
	<div><a href="addConnection">#{messageSource['navigation.addConnection']}</a></div>
	
	
	<div><a href="addCarHire">#{messageSource['navigation.register.hire']}</a></div>
	
	
	
	<div><a href="searchHire">#{messageSource['navigation.search.hire']}</a></div>



	<c:if test="${not empty currentUser.name}">
	<div><a href="changeUserData">#{messageSource['navigation.changeUserData']}</a></div>
	</c:if>
	</div>	
	<div>
	<div style="float:right;padding-right:10px;">
	<div style="float:left;padding-right:10px;">
	<c:choose>
		<c:when test="${webUserPreferences.webUser != null}">
		    	Welcome, ${webUserPreferences.webUser.login} 
			</c:when>
			<c:otherwise>
				<a href="login">Login</a>
			</c:otherwise>
			</c:choose>
		</div>
		<div style="float:left;padding-right:10px;"><a href="registerDriver">#{messageSource['navigation.register']}</a></div>
		
	</div>
	</div>	
	<hr class="space" />
	<div>
		
		<div class="content">
			<ui:insert name="content"/>
		</div>
</div>
	
</div>
</h:body>
</f:view>
</html>
